package com.example.sugar_api.service.impl;

import com.example.sugar_api.mapper.TradeMapper;
import com.example.sugar_api.pojo.ProvinceInfo;
import com.example.sugar_api.service.TradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author NanHuang
 * @Date 2023/1/27
 */
@Service
public class TradeServiceImpl implements TradeService {
    @Autowired
    private TradeMapper tradeMapper;

    @Override
    public List<ProvinceInfo> countByProvince(String dt) {
        return tradeMapper.provinceCount(dt);
    }
}
